package com.zhudoo.zhilian.dao.repository;

import com.zhudoo.zhilian.dao.entity.UserForm;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Repository
public interface UserFormRepository extends JpaRepository<UserForm, Serializable> {

    List<UserForm> findByUserIdAndFormExpiredTimeGreaterThanAndValid(Integer userId, Date expiredTime, boolean valid, Pageable pageable);
}
